<?php $videos = Doctrine::getTable('Video')->fetchall(array('seasonId'=>(isset($seasonId) ? $seasonId : 0),'limit'=>5));?>

<div class="gn_box" style="width:49%;float:left;">
  <div id="gn-widget-head-7" class="gn_box_head">
    <div class="gn_box_head_title" style="padding-left:0;color:#000;">
      <?php echo image_tag('icons/video_icon.png', array('align'=>"absmiddle"))?>&nbsp;
      <?php echo link_to('Шинээр нэмэгдсэн видео', '@homepage', array('style'=>'color:#000;'))?>
    </div>
  </div>

  <div id="widget-cont-7" class="bullet-box">
      <ul>
        <?php $i=0; foreach ($videos as $video):?>
          <li>
            <?php if($i++==0):?>
              <iframe width="322" height="200" src="<?php echo html_entity_decode($video->getEmbed())?>" frameborder="0" allowfullscreen></iframe>
            <?php endif?>
            <a href="<?php echo url_for('content/videoShow?id='.$video->getId())?>" title="<?php echo $video?>">
               <?php echo $video?>
            </a>
          </li>
        <?php endforeach?>
      </ul>
  </div><!--widget-cont-7-->

</div><!--gn_box-->